package com.imooc.common.util;

/**
 * ApiResult 消息枚举 63为上限
 * @author Sean
 *
 */
public enum SysCode implements Code  {
	//失败
	FAIL(-1,"\u5931\u8D25"),
	//成功
	SUCCESS(0,"\u6210\u529F"),
	//服务无响应
	DATAERROR(500,"\u670D\u52A1\u65E0\u54CD\u5E94"), 
	//未授权
	UNAUTHORIZED(2,"\u672A\u6388\u6743");
	
	private final int value;
    private final String info;
    
    
	private SysCode(int value, String info) {
		this.value = value;
		this.info = info;
	}
	@Override
	public int getValue() {
		return value;
	}
	
	@Override
	public String getInfo() {
		return info;
	}
    
    
    
    
    
    

}
